﻿using ConfExpert.Forms.Base;
using DevTeam;
using System;
using System.Collections.Generic;
using System.Data;

namespace ConfExpert.Forms.Siparisler
{
    public partial class TerminBazliUretim : XForm
    {
        public TerminBazliUretim()
        {
            InitializeComponent();
        }

        private void SipToplamByTermin_Load(object sender, EventArgs e)
        {
            gridView1.Init("GetSiparisStat");

            List<string> cols = new List<string>();
            foreach (DataColumn col in gridView1.DataTable().Columns)
                if (col.ColumnName != "CustomerId")
                    cols.Add(col.ColumnName);

            gridView1.FormatAsNumber(0, cols.ToArray());
            gridView1.AddSummary(cols.ToArray());
            gridView1.Freeze("CustomerId", "!Toplam");
            gridView1.BestFitColumns();
        }
    }
}
